//电梯左边门组件

import { StyleProps } from "../type/style"
import { StyleLeftDoor } from "./Door"

//继承style后多加一个toggle属性
export interface ElevatorLeftDoorProps extends StyleProps {
  toggle: boolean
}

//Partial是一个泛型，传入接口，代表将接口的每个属性变成可选属性
const ElevatorLeftDoor = (props: Partial<ElevatorLeftDoorProps>) => {
  //接受传入样式
  const { style, toggle } = props
  //控制StyleLeftDoor中的动画属性是否开启
  return (
    <StyleLeftDoor style={style} toggle={toggle}></StyleLeftDoor>
  )
}

export default ElevatorLeftDoor